<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<script src="../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
	<script src="//at.alicdn.com/t/font_2896317_z53hcu0iiy.js"></script>
	<script src="../../../js/public.js"></script>
	<link rel="stylesheet" type="text/css" href="../../../css/public.css">
	<link rel="stylesheet" href="./answer.css">
	<title>Document</title>
</head>

<body>
	<header id="header"></header>
	<section id="wrap">
		<section class="wrap-center">
			<section class="wrap-center-left">
				<div class="wrap-left-list1">
					<div class="wrap-left-list1-top">我想找一个商务口语的老师</div>
					<div class="wrap-left-list1-second">
						<svg style="width: 24px;height:16px;" aria-hidden="true">
							<use xlink:href="#icon-qianbao"></use>
						</svg>
						<span class="money"></span>
					</div>
					<div class="wrap-left-list1-third">需求信息</div>
					<div class="wrap-left-list1-four taskcon"></div>
					<div class="task-flex">
						<div class="wrap-left-list1-five">
							<svg style="width: 20px;height:18px;" aria-hidden="true">
								<use xlink:href="#icon-zaixian-xian"></use>
							</svg>
							<span style="color:#818181;margin-left:5px" class="datetimenow"></span>
							<svg style="width: 17px;height:18px;margin-left:22px" aria-hidden="true">
								<use xlink:href="#icon-kecheng"></use>
							</svg>
							<span style="color:#818181;margin-left:5px">在线课程</span>
							<svg style="width: 17px;height:18px;margin-left:22px" aria-hidden="true">
								<use xlink:href="#icon-31shijian"></use>
							</svg>
							<span style="color:#818181;margin-left:5px">灵活的时间表</span>
						</div>
						<div>
							<button type="button" class="task-btn">删除</button>
						</div>
					</div>
				</div>
				<div class="wrap-left-list2">更多需求</div>
				<div class="element-item">

				</div>
			</section>
			<aside class="wrap-center-right">
				<div style="font-size:24px;font-weight:bold;margin-left:14px;margin-top:17px">联络 Mia</div>
				<div style="margin-top: 12px;margin-left: 14px;">成为导师，并回复学生的要求</div>
				<a href="/views/register/teacherregist.html">
					<div class="wrap-center-right-send">
						成为老师</div>
				</a>
			</aside>
			<!-- <aside class="wrap-center-right2">
                <svg style="width: 47px;height:47px;margin-top: 12px;margin-left: 14px;" aria-hidden="true">
                    <use xlink:href="#icon-dagou1"></use>
                </svg>
                <div style="margin-top: 12px;margin-left: 14px;font-size: 24px;font-weight: bold;">您的消息已经发出去了</div>
                <div style="margin-top: 12px;margin-left: 14px">学生回信可能需要一些时间</div>
            </aside>  -->
			<!-- <aside class="wrap-center-right3">
                <div style="font-size:24px;font-weight:bold;margin-left:14px;margin-top:17px">需求截止了</div>
                <div style="margin-top: 12px;margin-left: 14px;">回答数已经达到了上线，这个需求关闭了。</div>
                <div style="margin: 12px auto;width: 232px;height: 39px;background: #5587EC;border-radius: 3px;color:white;cursor:pointer;display: flex;align-items: center;justify-content: center;">寻找其他需求</div>
            </aside> -->
		</section>
	</section>
	<footer id="footer"></footer>
</body>
<script type="module">
	productheader('header', 4);

	$(".title-right-bar").css("border", "none");
	$(".loginin").hide();
	$(".title-bar").empty()


	let tem = `<a href=" /views/teacher/teachers.html" id="students">寻找老师</a>`;

	$(".title-bar").append(tem);
	$("#students").addClass("stuss");
	$("#sp2").css("padding-left", "0px");

	let apis = `<a href="/views/question/question.html"><i class="iconfont icon-xinxi "></i></a>
	<i class="iconfont icon-morentouxiang" style="font-size: 25px;color: #BDBDBD;margin-left: 16px;"></i>
	`

	$(".left-bar").empty("#qweww").append(apis)




	productfooter('footer', 4);
</script>
<script src="../../../js/dream-msg.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">



	// 学生需求查询
	initData('.element-item');

	// 删除操作
	$('.task-btn').click(async function () {


		if (loadData && loadData.id) {
			let res = await ajax('student_task_del', { id: loadData.id }, 'post');
			if (res.code == 200) {
				initData('.element-item');
				Dreamer.info('删除成功', 2000);
			} else {
				Dreamer.warning('删除失败', 2000);
			}
		} else {
			Dreamer.warning('删除已完成，请勿重复点击!', 2000);
		}
	})

</script>

</html>
<style>
	.stuss {

		margin-left: 16px;
		padding: 4px 10px;
		background-color: #5587EC;
		border-radius: 6px;
		color: #fff;
		transform: scale(0.90);

	}
</style>